const express = require('express');
const app = express();
app.listen(9000, () => {
  console.log('服务器9000启动成功');
});

// 根URL下托管静态资源，访问路径 http://localhost:9000/文件名
app.use(express.static('./static/frontend'));

// 指定URL前缀托管静态资源，访问路径 http://localhost:9000/middleware_static/文件名
app.use('/middleware_static', express.static('./static/other'));